import java.util.Arrays;

public class Test {
    public static int[] fanc(){
        int[] array = { 1,2,3,4,5 };
        return array;
    }
    public static void main(String[] args) {
        int[] ret = fanc();
        //String a = Arrays.toString(ret);
        //System.out.println(a);
        //自己实现Arrays.toString();
        System.out.print("[");
        for(int i = 0; i < ret.length; i++)
        {
            System.out.print(ret[i]);
            if(i != (ret.length-1)) {
                System.out.print(",");
            }
        }
        System.out.print("]");
    }
}
